import { createApp } from 'vue'
import App from './App.vue'
const app = createApp(App)
/** router*/
import router from './router'
app.use(router)

/** piana*/
import store, { registerStore } from '@/stores';
app.use(store)
registerStore()

/** element*/
import ElementPlus from 'element-plus'
import 'element-plus/dist/index.css'
app.use(ElementPlus)

/** svg图标*/
import 'virtual:svg-icons-register'

/** 全局组件*/
import components from '@/components/index'; //全局组件注册
app.use(components)

/** 指令 */
import directive from '@/directive' // directive
directive(app)

/** 全局方法 */
import { setupGlobalProperties } from "@/utils/setup"
setupGlobalProperties(app)

app.mount('#app')
